package com.itheima.aop;

import org.aspectj.lang.ProceedingJoinPoint;

public class AopAdviceAround {
    public Object around(ProceedingJoinPoint pjp){
        System.out.println("前置运行。。。");

        Object proceed = null;
        try {
            proceed = pjp.proceed();
            System.out.println("返回运行。。。");
        } catch (Throwable throwable) {
            System.out.println("抛出异常。。。");
        } finally {
            System.out.println("后置运行。。。");
        }
        return null;
    }
}
